import InfoCard from "./InfoCard";
import { useLocation } from "react-router-dom";

export default function BookingDetail() {
  const {
    state: { record },
  } = useLocation();

  return (
    <div>
      <InfoCard value={record} title={"患者信息"}></InfoCard>
      <InfoCard value={record} title={"预约信息"}></InfoCard>
    </div>
  );
}
